package com.example.arithmetic.round;

/**
 * @Auther: yaozhiqi
 * @Date: 2021/7/11 22:57
 */
public class Flow {

    public static void main(String[] args) {
        for (int i=100;i<1000;i++){
            if(isFlow(i)){
                System.out.println(i);
            }
        }
    }

    public static boolean isFlow(int num){
        int a = num/100 % 100;
        int b = num/10 % 10;
        int c = num % 10;
        int numF = a*a*a + b*b*b + c*c*c;
        if(num == numF){
            return true;
        }
        return false;
    }
}
